import http from "../tools/http"

export function CreateTrain(params: {
  finishTime: Date
  screenVideo: string
  name: string
  files: string
  employees: string
  cameraVideo: string
}) {
  return http.post("/Train/CreateTrain", params)
}

export function UpdateEmployees(params: { trainId: never; employees: string }) {
  return http.post("/Train/UpdateEmployees", params)
}

export function UnderwayTrain() {
  return http.get("/Train/UnderwayTrain")
}

export function deleteErrorTrain() {
  return http.get("/Train/DeleteErrorTrain")
}
